SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO

/*
----------------------------------------------------------------------------------------------------

-- Created By:  ()
-- Purpose: Updates a record in the Activity table
----------------------------------------------------------------------------------------------------
*/


CREATE PROCEDURE dbo.Activity_Update
(

	@Id int   ,

	@OriginalId int   ,

	@Ip nvarchar (50)  ,

	@DateLogin datetime   ,

	@DateLogout datetime   
)
AS


				
				
				-- Modify the updatable columns
				UPDATE
					[dbo].[Activity]
				SET
					[Id] = @Id
					,[Ip] = @Ip
					,[DateLogin] = @DateLogin
					,[DateLogout] = @DateLogout
				WHERE
[Id] = @OriginalId 
				
			

GO
